package BDLayer;

import java.util.List;

import modelLayer.PartStatus;
import modelLayer.Status;

public interface IFDBPartStatus {

	//return List of type PartStatus
	public List<PartStatus> getAllPartStatus(boolean retriveAssociation);
	
	//return an object of type PartStatus by id
	public PartStatus findPartStatusByID(int partStatusID, boolean retriveAssociation);
	
	//return list of type PartStatus by statusID
	public List<PartStatus> findPartStatusByStatusID(int statusID, boolean retriveAssociation);
	
	//return list of type PartStatus by statusDay(day or night) 
	public List<PartStatus> findPartStatusByStatusDay(int statusDay, boolean retriveAssociation);

	//insert an object of type PartStatus in DB
	public int insertPartStatus(Status status, PartStatus psObj, boolean retriveAssociation) throws Exception;
	
	//update an object of type PartStatus in DB
	public int updatePartStatus(Status status, PartStatus psObj, boolean retriveAssociation) throws Exception;
	
	//delete an object of type PartStatus in DB
	public int deletePartStatusByStatus(Status status, boolean retriveAssociation) throws Exception;
	
	//delete an object of type PartStatus in DB
		public int deletePartStatus(PartStatus psObj, boolean retriveAssociation) throws Exception;
	

}
